import request from '@/utils/request'

export function getSite(data) {
  return request({
    url: `/md/sites/list`,
    method: 'post',
    data: data
  })
}

export function getWorkShopList(data) {
  return request({
    url: `/md/workShops/siteWorkShopList`,
    method: 'get',
    params: data
  })
}

export function getWorkShopBo(data) {
  return request({
    url: `/pp/p/resourcesCalendar/workShopUnderResources/${data}`,
    method: 'get'
  })
}

export function getClassSystemFrequencys() {
  return request({
    url: `/pp/p/resourcesCalendar/classSystemFrequencys`,
    method: 'get'
  })
}

export function getList(data) {
  return request({
    url: `/pp/p/resourcesCalendar/list`,
    method: 'post',
    data: data
  })
}

export function getCreate(data) {
  return request({
    url: `/pp/p/resourcesCalendar/createResourcesCalendars`,
    method: 'post',
    data: data
  })
}


export function getDelete(data) {
  return request({
    url: `/pp/p/resourcesCalendar/delete`,
    method: 'delete',
    data: data
  })
}

export function copyCalendars(data) {
  return request({
    url: `/pp/p/resourcesCalendar/copyResourcesCalendars`,
    method: 'post',
    data: data
  })
}

export function getUpList(data) {
  return request({
    url: `/pp/p/resourcesCalendar/update`,
    method: 'put',
    data: data
  })
}

export function getBatchSave(data) {
  return request({
    url: `/pp/p/resourcesCalendar/batchSave`,
    method: 'put',
    data: data
  })
}
